import request from '@/utils/request'

// 轮播图
export function banner (type) {
  return request({
    url: '/banner',
    method: 'get',
    params: {
      type
    }
  })
}
export function songlist (limit) {
  return request({
    url: '/personalized',
    method: 'get',
    params: {
      limit
    }
  })
}
export function newsong () {
  return request({
    url: '/personalized/newsong',
    method: 'get'
  })
}
export function mv () {
  return request({
    url: '/personalized/mv',
    method: 'get'
  })
}
export function songUrl (id) {
  return request({
    url: '/song/url',
    method: 'get',
    params: {
      id
    }
  })
}

export function Lyric (id) {
  return request({
    url: '/lyric',
    method: 'get',
    params: {
      id
    }
  })
}
